<!DOCTYPE html><html><head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title>专场申请</title>
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/common.css" type="text/css" rel="stylesheet">
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/renzheng.css" type="text/css" rel="stylesheet">
	    <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>   
	
</head>
<body>
<div id="contentbox"><input type="hidden" id="user_id" value='<?php echo $output["user"]["user_id"]?>'>
    <div class="verifyMain">
        <div class="verifyBox">
            <script>
                function zcgl_xl() {
                    var is_show = document.getElementById("zcgl").style.display;
                    if (is_show == "block") {
                        document.getElementById("zcgl").style.display = "none";
                    } else {
                        document.getElementById("zcgl").style.display = "block";
                    }
                }
                function ppgl_xl() {
                    var is_show = document.getElementById("ppgl").style.display;
                    if (is_show == "block") {
                        document.getElementById("ppgl").style.display = "none";
                    } else {
                        document.getElementById("ppgl").style.display = "block";
                    }
                }        </script>
            <div style="width:100%;height:auto;margin:0 auto;">
                <div class="title" style="float:left;width:50%;position:relative;background:green;text-align:center;"
                     onclick="zcgl_xl();">专场管理
                    <div
                        style="position:absolute;left:0px;top:20px;background:pink;width:100%;z-index:999;display:none;"
                        id="zcgl">
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang&curpage=1">专场申请</a></div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_zt&curpage=1">查看申请</a></div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_jl&curpage=1">参加记录</a></div>
                    </div>
                </div>
                <div class="title" style="float:right;width:50%;text-align:center;position:relative;background:green;"
                     onclick="ppgl_xl();">拍品管理
                    <div
                        style="position:absolute;left:0px;top:20px;background:pink;width:100%;z-index:999;display:none;"
                        id="ppgl">
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_paipin&curpage=1">拍品上传</a>
                        </div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_paipin_ck&curpage=1">查看拍品</a>
                        </div>
                    </div>
                </div>
            </div>
            <table style="width:100%;">
                <tr>
                    <th>专场id</th>
                    <th>专场标题</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                </tr> <?php if (empty($output["list"])) { ?>
                    <tr>
                        <td colspan="4" style="text-align:center;">暂无数据！！！</td>
                    </tr>                <?php } ?>                                    <?php foreach ($output["list"] as $val) { ?>
                    <tr style="border-top:1px solid red;text-align:center;">
                        <td><?php echo $val["id"] ?></td>
                        <td><?php echo $val["name"] ?></td>
                        <td><?php echo date('Y-m-d:H:i', $val["start_time"]) ?></td>
                        <td><?php echo date('Y-m-d:H:i', $val["end_time"]) ?></td>
                    </tr>
                    <tr>
                        <td colspan="4"><p>简介：</p>
                            <p><?php echo $val["special_describe"] ?></p></td>
                    </tr>
                    <tr>
                        <td colspan="4"><input type='button' value='申请' style='background:#08BA06;width:100%;'
                                               class="shenqing" current_id='<?php echo $val["id"] ?>'></td>
                    </tr>                                    <?php } ?>                                    </table>
            <style>        #fenye {
                    float: right;
                }

                #fenye li {
                    float: left;
                    margin-right: 30px !important;
                }        </style>
            <?php if (!empty($output["list"])) { ?>

                <?php echo $output['show_page']; ?><?php } ?>
        </div>
    </div>
</div>

    <style type="text/css">
        * {
            outline: none;
            -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
            vertical-align: baseline;
            font-style: normal;
        }

        body {
            margin: 0;
            padding: 0;
            font-size: 12px;
            font-family: Microsoft Yahei, Arial, Simsun, Helvetica, Segoe UI, sans-serif;
            color: #404040;
            background-color: #efeff4;
        }

        img {
            border: 0
        }

        ul, ol, li, dt, dl, dd {
            text-decoration: none;
            list-style: none;
            vertical-align: middle;
            margin: 0;
            padding: 0;
        }

        a,
        a:visited {
            color: #373737;
            text-decoration: none;
        }

        .blank {
            width: 100%;
            height: 20px;
        }
        .blank {
            width: 100%;
            height: 20px;
        }

        .userinfoMain {
            width: 100%;
            background-color: #FFF;
            display: table;
        }

        .userinfoMain .userinfoItem {
            width: 96%;
            margin-left: 4%;
            height: 50px;
            line-height: 50px;
        }

        .userinfoMain .userinfoItem span {
            float: left;
            display: block;
            width: 80px;
            height: 50px;
            line-height: 50px;
            text-align: left;
            font-size: 14px;
        }

        .userinfoMain .userinfoItem {
            border-bottom: 1px solid #dbdbdb;
        }

        .userinfoMain .userinfoItem:last-child {
            border-bottom: none;
        }

        .userinfoMain .userinfoItem input {
            width: 210px;
            height: 30px;
            border: none;
            font-size: 14px;
        }

        button {
            width: 94%;
            margin: 0 3%;
            border: none;
            background: #08BA06;
            border-radius: 4px;
            height: 40px;
            line-height: 40px;
            font-size: 18px;
            color: #FFF;
            margin-top: 40px;
            outline: none
        }
    </style>




<script type="text/javascript">
$(function(){

    $(".shenqing").click(function () {
        var current_id = $(this).attr('current_id');
        var user_id = $("#user_id").val();
        $.ajax({
            url: 'index.php?act=my&op=zc_shenqing&current_id=' + current_id + '&user_id=' + user_id,
            type: 'get',
            dataType: 'html',
            success: function (data) {
                alert(data);
            }
        });
    });
	
});
</script>
<?php include template('home/nav');?>
</body>
</html>